
#include <BApplication>

#include "MainWindow.h"

using namespace BWE;

class MyWindow : public BMainWindow
{
public:
	MyWindow()
	{
		BVBoxLayout* vlayout = new BVBoxLayout(this);
		vlayout->addWidget(new BButton("first"));
		vlayout->addWidget(new BButton("second"));
		vlayout->setSpacing(6);
		vlayout->setSplitable(true);
	}
};

int main(int argc, char** argv)
{
	BApplication app;
	app.setStyleSheet("data/style/widget.css");

	//MyWindow* window = new MyWindow();
	//window->show();

	MainWindow* mw = new MainWindow();
	mw->setTitle("main window");
	mw->setMargin(10);
	mw->show();

	return app.execute();
}

